object Heritage {
	def main() : Unit = {
		println(new Heri().test());
	}
}

class Methodes {
	def overriding() : Int = {
		println("Problem : Method not overrided");
		return 1;
	}
	def heritage() : Int = {
		println("Heritage OK");
		return 1;
	}
}

class Heri extends Methodes {
	def test() : Int = {
		var elem : Heri;
		var a : Int;
		var b : Int;
		elem = new Heri();
		a = elem.heritage();
		b=elem.overriding();
		return 1;
	}
	def overriding() : Int = {
		println("Overriding OK");
		return 1;
	}
}
